<template>
  <div class="Level">
    <div class="head">
      <div class="left">
        <div class="top">
          <div class="row1">
            <div class="name">星使1</div>
            <div class="levelBtn" @click="toRules">等级规则</div>
          </div>
          <div class="row2">需要经验值2654</div>
        </div>
        <div class="bottom">
          <div class="txt">还需484经验值升级Lv.2</div>
          <div class="progressBox">
            <div class="progress" :style="{ width: 80 + '%' }"></div>
          </div>
          <div class="levelBox">
            <span>Lv.1</span>
            <span>Lv.2</span>
          </div>
        </div>
      </div>
      <div class="right">
        <img src="../assets/image/xs1.png" alt="" />
      </div>
    </div>
    <div class="body">
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
      <div class="item">
        <div class="img">
          <img src="../assets/image/xs1.png" alt="" />
        </div>
        <div class="name">星使1</div>
        <div class="txt">开始直播</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    toRules() {
      this.$router.push("/LevelRules");
    },
  },
};
</script>

<style lang="less" scoped>
.Level {
  padding: 15px;
  .head {
    width: 100%;
    height: 164px;
    background: url(../assets/image/levelbg.png) no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    box-sizing: border-box;
    .left {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .top {
        .row1 {
          display: flex;
          align-items: center;
          .name {
            font-size: 32px;
            font-family: YouSheBiaoTiHei;
            font-weight: 400;
            color: #2f2550;
            margin-right: 12px;
          }
          .levelBtn {
            // width: 60px;
            height: 20px;
            font-size: 10px;
            font-family: PingFang SC;
            font-weight: 400;
            line-height: 20px;
            color: #ffffff;
            padding: 0 10px;
            background: linear-gradient(90deg, #9981ed 0%, #b871ff 100%);
            border-radius: 10px;
          }
        }
        .row2 {
          font-size: 10px;
          font-family: PingFang SC;
          font-weight: 500;
          line-height: 14px;
          color: #2f2550;
        }
      }
      .bottom {
        .txt {
          font-size: 10px;
          font-family: PingFang SC;
          font-weight: 500;
          line-height: 14px;
          color: #2f2550;
        }
        .progressBox {
          width: 180px;
          margin-top: 4px;
          height: 4px;
          border-radius: 5px;
          background: #f5f2ff;
          .progress {
            height: 4px;
            border-radius: 5px;
            // width: 135px;
            background: linear-gradient(270deg, #b18bff 0%, #5896ff 100%);
          }
        }
        .levelBox {
          width: 180px;
          display: flex;
          justify-content: space-between;
          span {
            font-size: 10px;
            font-family: PingFang SC;
            font-weight: 500;
            line-height: 14px;
            color: #2f2550;
            margin-top: 4px;
          }
        }
      }
    }
    .right {
      width: 140px;
      height: 140px;
      img {
        width: 100%;
      }
    }
  }
  .body {
    display: flex;
    flex-wrap: wrap;
    // justify-content: space-around;
    margin-top: 20px;
    .item {
      width: 33%;
      margin-bottom: 24px;
      .img {
        text-align: center;
        img {
          display: inline;
          width: 80px;
          height: 80px;
        }
      }
      .name {
        text-align: center;
        font-size: 15px;
        font-family: YouSheBiaoTiHei;
        font-weight: 400;
        line-height: 20px;
        color: #333333;
      }
      .txt {
        text-align: center;
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 17px;
        color: #666666;
      }
    }
  }
}
</style>